#include<iostream>
using namespace std;
int main(){
    int a[101],sum=0,n;
    a[1]=1;
    cin>>n;
	for(int i=2;i<101;i++){
		a[i]=a[i-1]+i;
	}	
	for(int i=1;i<n+1;i++){
		sum+=a[i];
	}
	cout<<"t"<<n<<"="<<a[n]<<"\n"<<"s="<<sum;
    return 0;
}
